@layout("/common/_container.html",{js:["/assets/business/batchOrder/batchOrder_edit.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">修改</span>
</div>
<style>
    .layui-card-body .layui-inline .layui-form-label{
        width: 119px;
    }
    .layui-card-body .layui-block .layui-form-label{
        width: 119px;
    }
</style>
<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <fieldset class="layui-elem-field layui-field-title">
                <legend>基本信息</legend>
            </fieldset>
            <form id="batchOrderForm" lay-filter="batchOrderForm" class="layui-form" style="max-width: 700px;margin:auto;">
                <input type="hidden" value="${batchOrder.batchId}" id="batchId" name="batchId"/>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <label class="layui-form-label">批次编号</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${batchOrder.batchNo}
                        </label>
                    </div>
                    <div class="layui-input-inline" style="margin-left: 100px;">
                        <label class="layui-form-label">批次面值</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${batchOrder.batchQuota}
                        </label>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <label class="layui-form-label">提交数量</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${batchOrder.batchCount}
                        </label>
                    </div>
                    <div class="layui-input-inline" style="margin-left: 100px;">
                        <label class="layui-form-label">提交的面值总和</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${batchOrder.subAllQuota}
                        </label>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <label class="layui-form-label">提交订单数量</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${batchOrder.subOrderNum}
                        </label>
                    </div>
                    <div class="layui-input-inline" style="margin-left: 100px;">
                        <label class="layui-form-label">申请折扣</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${batchOrder.payRate}
                        </label>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <label class="layui-form-label">申请人</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${batchOrder.cardOwner}
                        </label>
                    </div>
                    <div class="layui-input-inline" style="margin-left: 100px;">
                        <label class="layui-form-label">申请时间</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${batchOrder.createTime}
                        </label>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <label class="layui-form-label">卡类</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${batchOrder.cardTypeName}
                        </label>
                    </div>
                    <div class="layui-input-inline" style="margin-left: 100px;">
                        <label class="layui-form-label">卡种</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${batchOrder.cardCataoryName}
                        </label>
                    </div>
                </div>


            </form>


            <fieldset class="layui-elem-field layui-field-title">
                <legend>订单处理信息</legend>
            </fieldset>
            <form id="batchOrderForm2" lay-filter="batchOrderForm" class="layui-form" style="max-width: 700px;margin:auto;">
            <div class="layui-block">
                <div class="layui-input-inline">
                    <label class="layui-form-label">处理中的订单数量</label>
                    <label class="layui-form-label" style="text-align: left;color: #00F7DE">
                        ${batchOrder.subDoingNum}
                    </label>
                </div>
                <div class="layui-input-inline" style="margin-left: 100px;">
                    <label class="layui-form-label">已成功订单数量</label>
                    <label class="layui-form-label" style="text-align: left;color: #00A65A">
                        ${batchOrder.sucessOrderNum}
                    </label>
                </div>
            </div>

            <div class="layui-block">
                <div class="layui-input-inline">
                    <label class="layui-form-label">已失败订单数量</label>
                    <label class="layui-form-label" style="text-align: left;color: red">
                        ${batchOrder.failOrderNum}
                    </label>
                </div>
                <div class="layui-input-inline" style="margin-left: 100px;">
                    <label class="layui-form-label">成功提交订单数量</label>
                    <label class="layui-form-label" style="text-align: left;color: #00FF00">
                        ${batchOrder.subSuccessOrderNum}
                    </label>
                </div>
            </div>

            <div class="layui-block">
                <div class="layui-input-inline">
                    <label class="layui-form-label">未成功提交订单</label>
                    <label class="layui-form-label" style="text-align: left;color: #00F7DE">
                        ${batchOrder.subFailOrderNum}
                    </label>
                </div>

            </div>
            <div class="layui-form-item layui-block">
                <label class="layui-form-label">未成功提交原因</label>
                <div class="layui-form-mid" style="text-align: left;">
                    ${batchOrder.subFailOrderReason}
                </div>
            </div>
            </form>


    <fieldset class="layui-elem-field layui-field-title">
        <legend>卡密信息</legend>
    </fieldset>
    <div class="layui-form">
        <table class="layui-table">
            <colgroup>
                <col width="150">
                <col width="150">
            </colgroup>
            <thead>
            <tr>
                <th>卡号</th>
                <th>卡密</th>
            </tr>
            </thead>
            <tbody>
            @for(card in batchOrder.cardNOs){
            <tr>
                <td>${card.cardNo}</td>
                <td>${card.cardPassword}</td>
            </tr>
            @}
            </tbody>
        </table>
    </div>
    <fieldset class="layui-elem-field layui-field-title">
        <legend>订单信息</legend>
    </fieldset>
    <div class="layui-form">
        <table class="layui-table">
            <colgroup>
                <col width="150">
                <col width="150">
            </colgroup>
            <thead>
            <tr>
                <th>订单编号</th>
                <th>订单状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            @for(order in batchOrder.orderList){
            <tr>
                <td>${order.orderNo}</td>
                <td style="color: red">${order.orderStatus==0?'待审核':order.orderStatus==1?'审核通过':order.orderStatus==2?'审核不通过':'待结算'}</td>
                <td><a class="layui-btn layui-btn-primary layui-btn-xs layui-btn-warm" lay-event="edit" href="${ctxPath}/order/edit?orderId=${order.orderId}&source=batch">查看详情</a></td>
            </tr>
            @}
            </tbody>
        </table>
    </div>
    <div class="layui-form-item" style="text-align: center;">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
        </div>
    </div>
        </div>
    </div>
</div>

@}
